]> dgit.raspbian.org Git - gnome-shell.git/commit
lightbox: Use triangular noise shape for dithering
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 17 Mar 2026 17:01:20 +0000 (18:01 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 19 Mar 2026 17:07:43 +0000 (17:07 +0000)
commit16990045a4904c3ed8a4fe1ad10610aa2cc77b83
treeb549a22a27939e5b4977949f09e952e86fc68bf3
parent38553e497fca7b3fb02c3d7a79b7a5716fa2c027
lightbox: Use triangular noise shape for dithering

Highest density at 0.0, dropping off towards ±1.0.

This makes the dithering noise slightly less noticeable in the dark
corners of the vignette effect.

The algorithm is taken from listing 1 of the Dithering section on
https://momentsingraphics.de/BlueNoise.html .

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4137>
js/ui/lightbox.js